
include $(PROJ_ROOT_PATH)/board.mk

CURR_PATH = $(shell pwd)

ifeq ($(BOARD), RASPBERRYPI)
SUBDIRS := $(CURR_PATH)/i2c
SUBDIRS += $(CURR_PATH)/spi
SUBDIRS += $(CURR_PATH)/uart
endif


all: libs
	$(AT)echo "build done"

libs:
	$(AT)echo "SUBDIRS: $(SUBDIRS)"
	$(AT)echo "building bus libs..."
	$(AT)for dir in $(SUBDIRS); \
	do \
		make -C $$dir;	\
	done
	$(AT)echo "build bus libs done"


.PHONY: clean
clean:
	$(AT)for dir in $(SUBDIRS); \
	do \
		make clean -C $$dir;	\
	done
